const express=require('express');
const router=express.Router();
const {lables,updateLable,deleteLable}=require('../service/lableService');
router.get('/lables',async function(req, res,next) {
  let data=await lables();
  res.send(data);
})

router.post('/updateLable',async function(req, res, next) {
  let data=await updateLable(req.body);
  res.send();
})

router.post('/deleteLable',async function(req, res, next) {
  let data=await deleteLable(req.body);
})
module.exports=router;